home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Software / Freeware / Programare / bluej / bluejsetup-203.exe / {app} / lib / spanish / javac.help < prev    next >
Text File  |  2004-12-19  |  22KB  |  744 lines

  1. * is abstract; cannot be instantiated
  2. The class is declared "abstract". That means that
  3. it contains some methods for which it does not
  4. provide an implementation ("abstract methods").
  5. You cannot create objects of abstract classes.
  6. You need to find or write a subclass of the
  7. abstract class that implements all abstract 
  8. methods. You can then create objects of that 
  9. class.
  10.  
  11. abstract methods cannot have a body
  12. You have declared a method "abstract" and
  13. you have written a method body. That is a contradiction.
  14. Abstract method declarations have only a method header, 
  15. followed by a semicolon. Either remove the "abstract" 
  16. keyword, or remove the method body.
  17.  
  18. * is already defined in *
  19. There is already a variable (or maybe a
  20. parameter) in this method that has the 
  21. same name. Use a different name for this
  22. one. (Or maybe you meant to use the same
  23. variable here? Then remove the type name
  24. here so that it does not look like a new
  25. declaration.)
  26.  
  27. anonymous class implements interface; cannot have arguments
  28. No help available
  29.  
  30. anonymous class implements interface; cannot have qualifier for new
  31. No help available
  32.  
  33. array required, but *
  34. You are using syntax here that suggests that you are
  35. trying to access an array element. The variable you
  36. refer to is not an array, though.
  37.  
  38. break outside switch or loop
  39. The "break" statement breaks out of a block,
  40. such as a "switch" statement or a loop 
  41. ("for", "while" or "do" loop). It cannot be 
  42. used outside of such a block.
  43.  
  44. * must be first statement in constructor
  45. As the very first thing in every class that has a 
  46. superclass, you should call the superclass's 
  47. constructor. You do that by adding
  48.     super(...);
  49. as the first line of your constructor (where you
  50. replace the dots with the appropriate parameters).
  51. Trying to use members of the superclass before
  52. calling it's constructor is bound to be trouble!
  53.  
  54. cannot access *
  55. No help available
  56.  
  57. * cannot be applied to *
  58. No help available
  59.  
  60. cannot assign a value to final variable *
  61. The variable you are trying to assign to here has
  62. been declared "final". That means that you are not 
  63. allowed to change its value later on. If you really
  64. need to change the value, remove the "final" keyword
  65. from the variable declaration.
  66.  
  67. * cannot be dereferenced
  68. You are using dot notation to access a field or method
  69. of another object. However, the variable you are using
  70. is not of an object type - it does not have fields or
  71. methods.
  72.  
  73. cannot inherit from final *
  74. The superclass (the class listed after the 
  75. "extends" keyword) is declared final. That 
  76. means that it specifically prohibits 
  77. subclasses. Sorry - you cannot subclass it
  78. if it doesn't want you to...
  79.  
  80. * before supertype constructor has been called
  81. As the very first thing in every class that has a 
  82. superclass, you should call the superclass's 
  83. constructor. You do that by adding
  84.     super(...);
  85. as the first line of your constructor (where you
  86. replace the dots with the appropriate parameters).
  87. Trying to use members of the superclass before
  88. calling it's constructor is bound to be trouble!
  89.  
  90. cannot return a value from method whose result type is void
  91. A void result type in a method signature means that this
  92. method will not return any result.  The method body 
  93. should not have a return statement within it.
  94.  
  95. cannot select a static class from a parameterized type
  96. No help available
  97.  
  98. * cannot be inherited with different arguments:*
  99. No help available
  100.  
  101. 'catch' without 'try'
  102. "catch" is a Java keyword that can only appear after a
  103. "try" block. The correct pattern is
  104.    try {
  105.       statements;
  106.    }
  107.    catch(Exception e) {
  108.      statements;
  109.    }
  110.  
  111. * clashes with package of same name
  112. Make sure that the class and the package
  113. have different names. Usually, classes 
  114. should start with a capital letter, while
  115. package names start with a lowercase letter.
  116.  
  117. code too large for try statement
  118. You have too much code inside this try statement.
  119. Put the code into a separate method and insert a 
  120. method call here.
  121.  
  122. constant expression required
  123. You have used a variable or an expression here, but
  124. that's illegal. You can only use constants here.
  125. Constants are number literals (such as 42) or 
  126. identifiers declared as "final".
  127.  
  128. continue outside of loop
  129. The "continue" statement is used to 
  130. immediately start the next loop
  131. iteration. It has no meaning outside
  132. of a loop. It can only be used inside
  133. a "for", "while" or "do" loop.
  134.  
  135. cyclic inheritance involving *
  136. You are trying to extend a class here, but
  137. that class has already declared that it
  138. extends yours! Well, that cannot work!
  139. You have to decide which one is the 
  140. superclass and which is the subclass.
  141.  
  142. * does not exist
  143. The name you used here (which could be either
  144. an attempt to name a variable, a class or a 
  145. package) does not exist. There was neither a 
  146. variable nor a class nor a package with this 
  147. name.
  148.  
  149. duplicate class:*
  150. There appears to already be a class of this name.
  151.  
  152. duplicate case label
  153. You have used the same label twice in the same 
  154. "switch" statement.
  155.  
  156. duplicate default label
  157. You have written "default" twice inthe same switch 
  158. statement. You cannot do that - once is enough.
  159.  
  160. 'else' without 'if'
  161. An 'else' keyword can only appear as part of an 'if'
  162. statement, in the form
  163.    if (condition)
  164.      statement;
  165.    else
  166.      statement;
  167. Maybe you just forgot the braces around the statements?
  168. If you have more than one statement after the if, you
  169. have to add braces, like this:
  170.    if (condition) 
  171.    {
  172.       statement1;
  173.       statement2;
  174.    }
  175.    else
  176.    {
  177.       statement3;
  178.    }
  179.  
  180. empty character literal
  181. You have written a literal character that is empty.
  182. You cannot write ''.  A character constant is a single 
  183. character enclosed in single quotes, for example 'a'. 
  184. Most of the time, there can be only one single character 
  185. between the quotes. The only exception is if the first 
  186. character is the backslash (called the "escape character") 
  187. for specifying special characters, eg. '\n' or '\t'.  
  188.  
  189. * has already been caught
  190. This catch statement is useless. It can
  191. never be executed, because all exceptions
  192. that it is declared to catch are already 
  193. caught by another catch statement above it.
  194.  
  195. * is never thrown in body of corresponding try statement
  196. You have declared that you want to catch
  197. an exception here. But I can tell you
  198. that this exception will never be thrown
  199. here! There is no statement in the "try"
  200. block that throws this exception.
  201.  
  202. 'finally' without 'try'
  203. "finally" is a Java keyword that can only appear after a
  204. "try" block. The correct pattern is
  205.    try {
  206.       statements;
  207.    }
  208.    catch(Exception e) {
  209.      statements;
  210.    }
  211.    finally {
  212.       statements;
  213.    }
  214.  
  215. floating point number too large
  216. The system cannot cope with floating point numbers
  217. this big.
  218.  
  219. floating point number too small
  220. The system cannot cope with floating point numbers
  221. this small
  222.  
  223. inner classes cannot have static declarations
  224. You cannot declare static types in
  225. nested classes. If you need a static
  226. type here, declare it in the outer class.
  227.  
  228. illegal character:*
  229. There is an illegal character here in the source
  230. file. This character may be invisible. If you cannot
  231. find it to delete it, delete the whole line and type
  232. it again.
  233.  
  234. illegal combination of modifiers: *
  235. You have tried to combine two Java modifiers which
  236. are considered an illegal pairing.  It is likely 
  237. that the meaning of each is contradictory to each other.
  238. An example of this would be defining a method as abstract
  239. and native, final, private or synchronized.
  240.  
  241. illegal escape character
  242. An escape character is written with a backslash
  243. and a second character, for example '\n'. This is
  244. used to specify special characters. There is only 
  245. a fixed set of characters that may appear after 
  246. the backslash. They are \n, \t, \b, \r, \f, \\,
  247. \', \" and numbers. If you want to write the 
  248. backslash itself, write "\\" - this will be replaced
  249. by a single backslash in your string.
  250.  
  251. illegal forward reference
  252. No help available
  253.  
  254. illegal initializer for *
  255. No help available
  256.  
  257. illegal line end in character literal
  258. You have a line break where a character literal should
  259. be specified. You cannot do that. If you want to specify
  260. the character for a line break ("newline") write it as '\n'.
  261.  
  262. * is not an inner class
  263. No help available
  264.  
  265. illegal start of expression
  266. No help available
  267.  
  268. illegal start of type
  269. At a position in the source where the name of
  270. a type was expected, there was something else
  271. (most likely a Java keyword). Check this line
  272. for incorrect type definitions.
  273.  
  274. illegal unicode escape
  275. No help available
  276.  
  277. improperly formed type, some parameters are missing
  278. No help available
  279.  
  280. incomparable types: *
  281. No help available
  282.  
  283. integer number too large: *
  284. You have written a number that is too large to fit 
  285. into the data type that is expected here. You need
  286. to use a larger data type
  287. (for example, "long" instead of "int").
  288.  
  289. internal error; cannot instantiate *
  290. No help available
  291.  
  292. * but with different return type
  293. You may be trying to write two methods that have the same
  294. signature except for return type.  This is not allowed.
  295.  
  296. interface expected here
  297. An interface can only extend another interface. The name
  298. you have specified after the "extends" keyword is not an
  299. interface.
  300.  
  301. interface methods cannot have body
  302. Interface methods must be declarations only.
  303. That means that they should contain a method 
  304. header followed by a semicolon.  There should 
  305. be no method body.
  306.  
  307. hexadecimal numbers must contain at least one hexadecimal digit
  308. You have specified a hexadecimal number. (This is done 
  309. by starting a number with "0X".) In hexadecimal numbers,
  310. you must have at least one digit after the "X".
  311.  
  312. invalid method declaration; return type required
  313. A method declaration must have a declared return type.
  314. For example, if your method returns a String, write
  315.     public String myMethod();
  316. If you do not want to return a value from this method,
  317. use the special word "void" to indicate that there is
  318. no return type. For example
  319.     public void myMethod();
  320.  
  321. * already in use
  322. There is already a variable (or maybe a
  323. parameter) in this method that has the 
  324. same name. Use a different name for this
  325. one. (Or maybe you meant to use the same
  326. variable here? Then remove the type name
  327. here so that it does not look like a new
  328. declaration.)
  329.  
  330. * is accessed from within inner class; needs to be declared final
  331. Local variables cannot usually be accessed by inner 
  332. classes. But that is exactly what you are trying to
  333. do here. You have two options: You can remove this
  334. access to the local variable, or you can make the
  335. variable "final" - then you can access it.
  336.  
  337. malformed floating point literal
  338. You have made some mistake in writing a floating
  339. point number. (A floating point number is one
  340. with a decimal point in it.) Examples of correctly 
  341. written floating point numbers are
  342. 18.0      18.     1.8e1     .18E2
  343.  
  344. missing method body, or declare abstract
  345. Methods must either have a body or be abstract. A
  346. method body is the block in curly braces { } that 
  347. follows the method header and contains statements.
  348. If a method does not have a body then it must have the
  349. keyword "abstract" in its header. For example:
  350.     public abstract int getAnswer();
  351.  
  352. missing return statement
  353. Here, you've got a method that is declared to return a 
  354. value. There is, however, no "return" statement in the body
  355. of the method. That doesn't fit together. You must either:
  356.    - declare the return type of the method as "void"
  357.      if you don't want to return a value, or
  358.    - write a "return" statement with the correct 
  359.      return type at the end of the method, for 
  360.      example
  361.          return 42;
  362. The type of the return value must match the declared type
  363. in the method header.
  364.  
  365. missing return value
  366. Here, you have written a "return" statement that does
  367. not return a value. The method header, however, declares
  368. that this method returns a value. You must either declare
  369. that this method does not return a value (by using "void"
  370. as the return type in the method header), or you must 
  371. return a value of the correct type, for example 
  372.     return 42;
  373. or
  374.     return "Marvin";
  375.  
  376. name clash: *
  377. No help available
  378.  
  379. * is reserved for internal use
  380. The term shown is reserved for internal use, if it is
  381. name of a variable or class you will need to change it.
  382.  
  383. native methods cannot have a body
  384. You have declared a method "native" and you have written 
  385. a method body. Native method declarations have only
  386. a method header, followed by a semicolon. Either remove
  387. the "native" keyword, or remove the method body.
  388.  
  389. no enclosing instance of type {0} is in scope
  390. No help available
  391.  
  392. no interface expected here
  393. You are referring to an interface here (possibly in
  394. an "extends" declaration of a class). A class can only
  395. extend other classes (not interfaces). If you want to
  396. implement this interface, use the "implements" keyword
  397. instead.
  398.  
  399. * has no match in entry in *
  400. No help available
  401.  
  402. * is not defined in a public class or interface; cannot be accessed from outside package
  403. No help available
  404.  
  405. * cannot be accessed from outside package
  406. No help available
  407.  
  408. not a loop label: *
  409. No help available
  410.  
  411. not a statement
  412. You have written a line of code here that is not
  413. a complete statement. Please check again what you
  414. intended to do and how you should do it.
  415.  
  416. not an enclosing class:*
  417. No help available
  418.  
  419. * cannot be applied to *
  420. The operator that you use here cannot be used for the
  421. type of value that you are using it for. You are either
  422. using the wrong type here, or the wrong operator.
  423.  
  424. * clashes with class of same name
  425. Make sure that the class and the package
  426. have different names. Usually, classes 
  427. should start with a capital letter, while
  428. package names start with a lowercase letter.
  429.  
  430. possible fall-through into case
  431. No help available
  432.  
  433. error reading *
  434. No help available
  435.  
  436. recursive constructor invocation
  437. You have written code that causes this
  438. constructor to call itself. That is not
  439. allowed (and would most likely lead to
  440. an infinite loop).
  441.  
  442. * is ambiguous, both *
  443. The identifier named in this message cannot be properly
  444. resolved, because there is more than one class or interface
  445. with this name defined in the packages that you have imported.
  446. You can either refer to the class here with its full qualified
  447. name (e.g. java.util.List) or import the class with its fully
  448. qualified name (e.g. import java.util.List).
  449.  
  450. repeated interface
  451. You have listed the same interface
  452. twice in the same "implements"
  453. declaration. Once is enough. My
  454. memory isn't that bad!
  455.  
  456. repeated modifier
  457. In this declaration, you have written the same
  458. modifier twice. A modifier is a keyword such
  459. as final, static, public, private, volatile, ...
  460.  
  461. {0} has {1} access in {2}
  462. No help available
  463.  
  464. return outside method
  465. No help available
  466.  
  467. signature does not match *
  468. No help available
  469.  
  470. * should be declared abstract; it does not define *
  471. The current class inherits from an abstract class
  472. or an interface. Abstract classes and interfaces 
  473. define methods without giving the implementation.
  474. This class does not define implementations for 
  475. all the methods that still need implementations,
  476. so this class itself is still abstract (meaning
  477. it still has methods without implementations).
  478. You must either declare this class abstract by 
  479. starting it with
  480.    public abstract class ...
  481. instead of just 
  482.    public class ...
  483. or you must provide an implementation for the 
  484. method named in the error message.
  485.  
  486. error writing source; cannot overwrite input file *
  487. No help available
  488.  
  489. 'try' without 'catch' or 'finally'
  490. If you use a "try" block, then it must be followed
  491. by either a "catch" block or a "finally" block (or
  492. both).  The correct pattern is
  493.    try {
  494.       statements;
  495.    }
  496.    catch(Exception e) {
  497.      statements;
  498.    }
  499.    finally {
  500.       statements;
  501.    }
  502.  
  503. * does not take parameters
  504. No help available
  505.  
  506. type variables cannot be dereferenced
  507. No help available
  508.  
  509. type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
  510. No help available
  511.  
  512. type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
  513. No help available
  514.  
  515. unclosed character literal
  516. It is likely that you have declared a character literal and
  517. not added the closing single quote: '.
  518.  
  519. unclosed comment
  520. It is likely that you have written a comment and not
  521. closed it with the comment close characters: */
  522.  
  523. unclosed string literal
  524. It is likely that you have declared a String literal and
  525. not added the closing double quotes: ".
  526.  
  527. undefined label: *
  528. The variable you are trying to use here cannot be
  529. found. Either it was never declared or it was
  530. declared somewhere where you cannot see it.
  531. The first case happens easily if you have a
  532. spelling error in a variable. Check that the variable
  533. is spelled correctly, including all capital characters
  534. ("aNumber" is not the same as "anumber"!).
  535. The second case happens if a variable is declared 
  536. inside a block. (A block is a pair of curly braces, 
  537. like this { }.) If you have a variable declaration
  538. inside a loop, for instance, then the variable is
  539. only visible inside that loop. As a rule of thumb:
  540. a variable becomes invisible after the curly brace (})
  541. that closes the block in which it is declared.
  542.  
  543. unreachable statement
  544. This statement will never be executed. If
  545. you examine the code carefully you will
  546. notice that the control flow is such that 
  547. it can never reach this statement. Delete
  548. it if you really don't want it executed, 
  549. or fix your code.
  550.  
  551. initializer must be able to complete normally
  552. You cannot throw exceptions or otherwise
  553. terminate static initialiser blocks. You
  554. have to let it complete executing.
  555.  
  556. unreported exception {0}; must be caught or declared to be thrown
  557. Your code makes a call to a method that may throw 
  558. an exception. You have two choices: You can either 
  559. catch that exception or you can declare that your 
  560. method passes it on. If you want to catch the
  561. exception, you have to use a 
  562.    try 
  563.    {
  564.       ...
  565.    }
  566.    catch(...)
  567.    {
  568.       ...
  569.    }
  570. block.
  571. If you want to pass it on, you must write the 
  572. declaration
  573.    throws <ExceptionName>
  574. into the signature of your method.
  575.  
  576. 'void' type not allowed here
  577. The void type cannot be used in this context.  it is
  578. a special type that is used to indicate no return type 
  579. for methods.  It cannot be used as a variable type.
  580.  
  581. * not allowed here
  582. You have used an access modifier (such as "private", 
  583. "protected", etc.). This modifier is not allowed
  584. at this location.
  585.  
  586. wrong number of type arguments; required *
  587. No help available
  588.  
  589. * might already have been assigned to
  590. A final variable can only be assigned once. (Your variable
  591. in question here is final.) You have two assignments to this
  592. variable in your code, and the compiler thinks it could 
  593. happen that both assignments are executed.
  594.  
  595. * might not have been initialized
  596. You are using a local variable that is not guaranteed
  597. to be initialised before it is used here. If in doubt,
  598. initialise it at its declaration.
  599.  
  600. * might be assigned in loop
  601. No help available
  602.  
  603. error while writing *
  604. No help available
  605.  
  606. * is public, should be declared in a file named *
  607. Public classes are required to be located in a file
  608. named the same as the public class name with a 
  609. ".java" extension.  For example public class Foo
  610. needs to be located in a file named "Foo.java".
  611.  
  612. cannot read: *
  613. No help available
  614.  
  615. Fatal Error: Unable to locate package java.lang in classpath or bootclasspath
  616. No help available
  617.  
  618. Fatal Error: Unable to locate method *
  619. No help available
  620.  
  621. * uses or overrides a deprecated API.
  622. You are using a method that is no longer recommended.
  623. It is quite likely that there is another method or class 
  624. that provides this functionality.  Consult the API 
  625. documentation for more details
  626.  
  627. Some input files use or override a deprecated API.
  628. No help available
  629.  
  630. Recompile with -deprecation for details.
  631. No help available
  632.  
  633. * uses unchecked operations.
  634. No help available
  635.  
  636. Some input files use unchecked operations.
  637. No help available
  638.  
  639. * has been deprecated
  640. You are using a method that is no longer recommended.
  641. It is quite likely that there is another method or class 
  642. that provides this functionality.  Consult the API 
  643. documentation for more details
  644.  
  645. unchecked assignment: *
  646. No help available
  647.  
  648. unchecked call to {0} as a member of the raw type {1}
  649. No help available
  650.  
  651. unchecked cast to type *
  652. No help available
  653.  
  654. unchecked generic array creation
  655. No help available
  656.  
  657. unchecked method invocation: *
  658. No help available
  659.  
  660. ';' expected
  661. There is a semicolon missing at the end of 
  662. a line. This could be the line marked in the
  663. editor, or the line above.
  664.  
  665. 'case', 'default' or '}' expected
  666. No help available
  667.  
  668. 'class' or 'interface' expected
  669. The word "class" or "interface" is expected to
  670. appear somewhere near the top of a source file.
  671. This is missing here (or there is stuff in front
  672. of it that doesn't belong there).
  673.  
  674. '.class' expected
  675. No help available
  676.  
  677. '(' or '[' expected
  678. It looks like there is an uneven number of brackets
  679. in your code that is confusing the compiler.  Carefully
  680. check through your code that three are matching opening 
  681. and closing brackets.
  682.  
  683. * expected
  684. The symbol named in the error message was 
  685. expected to appear at this point in the code.
  686. It was not there; instead, there was some
  687. other symbol. Try to think about why this 
  688. symbol may be expected here.
  689.  
  690. orphaned *
  691. No help available
  692.  
  693. cannot access *
  694. No help available
  695.  
  696. bad class file: *
  697. No help available
  698.  
  699. type parameter {0} is not within its bound *
  700. No help available
  701.  
  702. incompatible types*
  703. There was an expression of a certain type required
  704. here. You provided an expression of a different
  705. type that is not compatible. (E.g. you wrote a
  706. String where an int was expected.)
  707.  
  708. inconvertible types*
  709. The type you have used here cannot be automatically
  710. converted to the type required.
  711.  
  712. possible loss of precision
  713. No help available
  714.  
  715. unexpected type
  716. No help available
  717.  
  718. abstract {0} {1} cannot be accessed directly
  719. No help available
  720.  
  721. *An explicit 'this' qualifier must be used to select the desired instance.
  722. No help available
  723.  
  724. non-static {0} {1} cannot be referenced from a static context
  725. No help available
  726.  
  727. cannot resolve symbol*
  728. No help available
  729.  
  730. {0}; {1} and {2} are static
  731. No help available
  732.  
  733. {0}; overridden method is {1}
  734. No help available
  735.  
  736. attempting to assign weaker access privileges; was *
  737. No help available
  738.  
  739. overridden method does not throw *
  740. No help available
  741.  
  742. * attempting to use incompatible return type
  743. No help available
  744.